import java.util.Scanner;

public class runnian {
    public static void main(String[] agrs){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入年份：");
        int years;
        years = scanner.nextInt();
        if(years<0 || years>9999){
        System.out.println("年份输入有误!");
        }
        if(years%4==0 || years%400==0&&years%100==0){
            System.out.println(years+"是闰年！");
        }
        else{
            System.out.println(years+"不是闰年！");
        }
    }
}
